import request from '@/utils/request'

// 查询指纹数据列表
export function listFingerprint(query) {
  return request({
    url: '/yiluzhilian/fingerprint/list',
    method: 'get',
    params: query
  })
}

export function getDeviceOptions() {
  return request({
    url: '/yiluzhilian/device/deviceOptions',
    method: 'get'
  })
}
export function getGridsOptions() {
  return request({
    url: '/yiluzhilian/grids/gridOptions',
    method: 'get'
  })
}

// 查询指纹数据详细
export function getFingerprint(id) {
  return request({
    url: '/yiluzhilian/fingerprint/' + id,
    method: 'get'
  })
}

// 新增指纹数据
export function addFingerprint(data) {
  return request({
    url: '/yiluzhilian/fingerprint',
    method: 'post',
    data: data
  })
}

// 修改指纹数据
export function updateFingerprint(data) {
  return request({
    url: '/yiluzhilian/fingerprint',
    method: 'put',
    data: data
  })
}

// 删除指纹数据
export function delFingerprint(id) {
  return request({
    url: '/yiluzhilian/fingerprint/' + id,
    method: 'delete'
  })
}
